package com.ruoyi.deal.service.impl;

import java.util.List;

import com.ruoyi.deal.domain.CcsLogisticsCompany;
import com.ruoyi.deal.mapper.CcsLogisticsCompanyMapper;
import com.ruoyi.deal.service.ICcsLogisticsCompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 物流公司Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-17
 */
@Service
public class CcsLogisticsCompanyServiceImpl implements ICcsLogisticsCompanyService
{
    @Autowired
    private CcsLogisticsCompanyMapper ccsLogisticsCompanyMapper;

    /**
     * 查询物流公司
     *
     * @param id 物流公司主键
     * @return 物流公司
     */
    @Override
    public CcsLogisticsCompany selectCcsLogisticsCompanyById(Long id)
    {
        return ccsLogisticsCompanyMapper.selectCcsLogisticsCompanyById(id);
    }

    /**
     * 查询物流公司列表
     *
     * @param ccsLogisticsCompany 物流公司
     * @return 物流公司
     */
    @Override
    public List<CcsLogisticsCompany> selectCcsLogisticsCompanyList(CcsLogisticsCompany ccsLogisticsCompany)
    {
        return ccsLogisticsCompanyMapper.selectCcsLogisticsCompanyList(ccsLogisticsCompany);
    }

    /**
     * 新增物流公司
     *
     * @param ccsLogisticsCompany 物流公司
     * @return 结果
     */
    @Override
    public int insertCcsLogisticsCompany(CcsLogisticsCompany ccsLogisticsCompany)
    {
        return ccsLogisticsCompanyMapper.insertCcsLogisticsCompany(ccsLogisticsCompany);
    }

    /**
     * 修改物流公司
     *
     * @param ccsLogisticsCompany 物流公司
     * @return 结果
     */
    @Override
    public int updateCcsLogisticsCompany(CcsLogisticsCompany ccsLogisticsCompany)
    {
        return ccsLogisticsCompanyMapper.updateCcsLogisticsCompany(ccsLogisticsCompany);
    }

    /**
     * 批量删除物流公司
     *
     * @param ids 需要删除的物流公司主键
     * @return 结果
     */
    @Override
    public int deleteCcsLogisticsCompanyByIds(Long[] ids)
    {
        return ccsLogisticsCompanyMapper.deleteCcsLogisticsCompanyByIds(ids);
    }

    /**
     * 删除物流公司信息
     *
     * @param id 物流公司主键
     * @return 结果
     */
    @Override
    public int deleteCcsLogisticsCompanyById(Long id)
    {
        return ccsLogisticsCompanyMapper.deleteCcsLogisticsCompanyById(id);
    }
}
